package edu.zut.software.identity.constant;

import java.util.Locale;

public class WorkWXAPI {

    public static final String CORPID ="ww5eff4f8ad7ab9a02" ;
    public static final String SECRET = "G4MKWt6YaL9J0CGSklVyYj2j_CSjRHHZKvnBSBj1KWk";
    public static String GET_ACCESS_TOKEN_URL =String.format("https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s",CORPID,SECRET);
    public static String getGetAccessTokenUrl() {
        return GET_ACCESS_TOKEN_URL;
    }
// private static String accessTokenUrl="https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ww5eff4f8ad7ab9a02&corpsecret="+corpsecret;

    //创建部门url
    public static String DEPARTMENT_CREATE = "https://qyapi.weixin.qq.com/cgi-bin/department/create?access_token=%s";

    //获取部门列表
    public static String DEPARTMENT_LIST = "https://qyapi.weixin.qq.com/cgi-bin/department/list?access_token=%s";
    //删除部门
    public static String DEPARTMENT_DELETE="https://qyapi.weixin.qq.com/cgi-bin/department/delete?access_token=%s&id=%s";
    //创建成员
    public static String CONTACTS_CREATE = "https://qyapi.weixin.qq.com/cgi-bin/user/create?access_token=%s";
    //删除成员
    public static String PERSON_DELETE ="https://qyapi.weixin.qq.com/cgi-bin/user/delete?access_token=%s&userid=%s";
    //更新部门
    public static String DEPEARTMENT_UPDATE="https://qyapi.weixin.qq.com/cgi-bin/department/update?access_token=%s";
}
